BunnyHopSpeed.this

Base data for a bunny hop calculations

struct BunnyHopSpeed
this
(
ubyte friction
,
float airAccel
,,,,
float timeUnit = 1f
,
vec3 previousVelocity = vec3(0, 0, 0)
)

Parameters

friction ubyte

The friction of the world. Must be between 1 and 5. Where 5 would cause gliding.

airAccel float

Acceleration speed while in the air (e.g. jumps)

airMaxAccel float

The maximum acceleration in the air (e.g. jumps)

groundAccel float

Acceleration speed while on the ground

groundMaxAccel float

The maximum acceleration on the ground

timeUnit float

How long is a single time unit aka per frame? Default: 1

previousVelocity vec3

What was the previous velocity that the character was at? Default: X: 0, Y: 0, Z: 0

Meta